﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ALog.Logging;
namespace TestALog
{

    class Program
    {
        static void Main(string[] args)
        {
            Console.ReadLine();
            TestInfoLogging();
            TestExceptionLogging();
            TestDataLogging();
            Console.ReadLine();
        }

        private static void TestDataLogging()
        {

        }
        /// <summary>
        /// Tests Exception Logging.. 
        /// To log the exception...
        /// 
        /// </summary>
        private static void TestExceptionLogging()
        {
            //try
            //{
            //    throw new Exception("Test Exception..");
            //}
            //catch (Exception ex)
            //{
            //    LoggerUtility.LogException(ex);
            //}
        }
        /// <summary>
        /// Test Normal Info Logging
        /// </summary>
        private static void TestInfoLogging()
        {
            //Test the log.. send message Synchronously
            LoggerUtility.LogMessages("message to log", 1, 1, System.Diagnostics.TraceEventType.Start, "Add Some Title");
            //Test the loh.. Send Message Aysnhronously
            LoggerUtility.AsyncLogMessages("message to log: Async", 1, 1, System.Diagnostics.TraceEventType.Start, "Add Some Title.. Added in Aysnc mode");
            LoggerUtility.AsyncLogMessages("message to log: Async", 1, 1, System.Diagnostics.TraceEventType.Start, "Add Some Title.. Added in Aysnc mode");

            LoggerUtility.AsyncLogMessages("message to log: Async", 1, 1, System.Diagnostics.TraceEventType.Start, "Add Some Title.. Added in Aysnc mode");
            LoggerUtility.AsyncLogMessages("message to log: Async", 1, 1, System.Diagnostics.TraceEventType.Start, "Add Some Title.. Added in Aysnc mode");

        }


    }
    }

  